
package com.heima.api.user;

import com.heima.model.behavior.dtos.ArticleInfoDto;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.user.dtos.AuthDto;
import com.heima.model.user.pojos.ApUser;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "leadnews-user")
public interface IUserClient {

    @ApiOperation("查询列表")
    @PostMapping("/api/v1/auth/list")
    ResponseResult listAll(@RequestBody AuthDto authDto);

    @ApiOperation("审核失败")
    @PostMapping("/api/v1/auth/authFail")
    ResponseResult authFail(@RequestBody AuthDto authDto);

    @ApiOperation("审核通过")
    @PostMapping("/api/v1/auth/authPass")
    ResponseResult authPass(@RequestBody AuthDto authDto);

    @PostMapping("/api/v1/user/query")
    ApUser queryUser(@RequestBody ApUser user);


    @PostMapping("/api/v1/user/user_follow_info")
    ResponseResult userFollowInfo(@RequestBody ArticleInfoDto dto);
}